package com.hdhere.application.service;

import com.hdhere.domain.media.QVideo;
import com.hdhere.domain.media.Video;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by dus on 2018/11/4.
 */
@Service
public class MediaService extends BaseService{

    public Video getOne(String id){

        QVideo qMedia = QVideo.video;
        Video media = new Video();
        return media;
    }

    public List<Video> getList(){

        List<Video> list=
                queryFactory.selectFrom(QVideo.video).fetch();
        return list;
    }
}
